package com.weayer.service;

import com.weayer.dto.ResponseResult;
import com.weayer.remote.MapServiceClient;
import com.weayer.response.ServiceResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: 服务管理Service
 * @author: Weayer
 **/
@Service
public class ServiceService {
    @Autowired
    private MapServiceClient mapServiceClient;
    
    /**
     * @Description: 根据服务名称，调用api创建服务，获取sid
     * @Param: [name]
     * @return: com.weayer.dto.ResponseResult<com.weayer.response.ServiceResponse>
     **/
    public ResponseResult<ServiceResponse> add(String name){
        return mapServiceClient.add(name);
    }
}
